package com.wechat.common.route;

import com.jfinal.config.Routes;
import com.wechat.controller.wechat.WechatApiController;
import com.wechat.controller.wechat.WechatIndexController;
import com.wechat.controller.wechat.WechatMsgController;

public class WechatRoutes extends Routes {

	@Override
	public void config() {
		//第一个参数是url里要填写的  http://127.0.0.1/wechat
		//第二个参数是映射的Controller
		//第三个参数是视图的存放路径
		add("wx", WechatIndexController.class, "wechat");
		add("wx/msg", WechatMsgController.class);//微信公众号主要处理接口
		add("wx/api", WechatApiController.class);//微信对用户/自定义菜单/素材...的操作接口
	}

}
